//
//  JFCollectionViewCell.m
//  JFCalendarPicker
//
//  Created by 保修一站通 on 15/9/29.
//  Copyright (c) 2015年 JF. All rights reserved.
//

#import "JFCollectionViewCell.h"

@implementation JFCollectionViewCell

//开心-红色
//
//难过-灰色
//
//生气-黑色
//
//烦恼-紫色
//
//无语-棕色
//
//疲惫-黄色
//
//悠闲-绿色

- (UILabel *)dateLabel
{
    if (!_dateLabel) {
        _bgview = [[UIView alloc] initWithFrame:CGRectMake((self.bounds.size.width - 32)/2, (self.bounds.size.width - 32)/2, 32, 32)];
        _bgview.layer.cornerRadius = 16;
        _bgview.backgroundColor = [UIColor colorWithRed:241.0/255 green:243.0/255 blue:247.0/255 alpha:1];
        [self addSubview:_bgview];
        
        _dateLabel = [[UILabel alloc] initWithFrame:self.bounds];
        [_dateLabel setTextAlignment:NSTextAlignmentCenter];
        [_dateLabel setFont:[UIFont systemFontOfSize:12]];
        [self addSubview:_dateLabel];
        
        _todayImage = [[UIImageView alloc] initWithFrame:CGRectMake((self.bounds.size.width - 30)/2, (self.bounds.size.width - 30)/2, 30, 30)];
        _todayImage.image = [UIImage imageNamed:@"Ganlu_ today"];
        
        [self addSubview:_todayImage];
        
        
        _capsileView = [[UIView alloc] initWithFrame:CGRectMake((self.bounds.size.width - 30)/2, (self.bounds.size.width - 30)/2, 30, 30)];
        _capsileView.layer.cornerRadius = 16;
        _capsileView.backgroundColor = [UIColor blackColor];
        [self addSubview:_capsileView];
        
        _capsileImg = [[UIImageView alloc] initWithFrame:CGRectMake(0,0, 30, 30)];
        _capsileImg.image = [UIImage imageNamed:@""];
        [_capsileView addSubview:_capsileImg];
        
        
        
        _capsileDateLabel = [[UILabel alloc] initWithFrame:CGRectMake(1, 5, 20, 12)];
        [_capsileDateLabel setTextAlignment:NSTextAlignmentCenter];
        _capsileDateLabel.textColor = [UIColor whiteColor];
        [_capsileDateLabel setFont:[UIFont systemFontOfSize:12]];
        [_capsileView addSubview:_capsileDateLabel];
        
        
    }
    return _dateLabel;
}

@end
